﻿using System.Web.Optimization;

namespace SaveThoseNotesWebApi
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"
                      ));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css",
                      "~/Stylesheets/add_note.css",
                      "~/Stylesheets/admin_page.css",
                      "~/Stylesheets/individual_note-Jason.css",
                      "~/Stylesheets/logged_in_user-home_page.css",
                      "~/Stylesheets/site.css",
                      "~/Stylesheets/user_profile.css"));

            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                   "~/Scripts/angular.js",
                   "~/Scripts/angular-route.js",
                   "~/Scripts/angular-google-maps.js",
                   "~/Scripts/angular-ui-date.js"
                   ));

            //bundles.Add(new ScriptBundle("~/bundles/app").Include(
            //          "~/App/Scripts/app.js",
            //          "~/App/Scripts/Services/LoginFactory.js",
            //          "~/App/Scripts/Services/NoteFactory.js",
            //          "~/App/Scripts/Services/CommentService.js",
            //          "~/App/Scripts/Services/RegisterFactory.js",
            //          "~/App/Scripts/Directives/CommentDirective.js",
            //          "~/App/Scripts/Controllers/MapController.js",
            //          "~/App/Scripts/Controllers/HomeController.js",
            //          "~/App/Scripts/Controllers/NavBarController.js",
            //          "~/App/Scripts/Controllers/RegisterController.js",
            //          "~/App/Scripts/Controllers/CarouselController.js",
            //          "~/App/Scripts/Controllers/DatePickerController.js",
            //          "~/App/Scripts/Controllers/SearchController.js",
            //          "~/App/Scripts/Controllers/CommentController.js"
            //          ));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                     "~/App/Scripts/app.js",
                     "~/App/Scripts/Services/LoginFactory.js",
                     "~/App/Scripts/Services/NoteFactory.js",

                     "~/App/Scripts/Services/RegisterFactory.js",

                     "~/App/Scripts/Controllers/MapController.js",
                     "~/App/Scripts/Controllers/HomeController.js",
                     "~/App/Scripts/Controllers/NavBarController.js",
                     "~/App/Scripts/Controllers/RegisterController.js",
                     "~/App/Scripts/Controllers/CarouselController.js",
                     "~/App/Scripts/Controllers/DatePickerController.js",
                     "~/App/Scripts/Controllers/SearchController.js",
                     "~/App/Scripts/Controllers/CommentController.js"
                     ));

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            //BundleTable.EnableOptimizations = true;
#if DEBUG
            BundleTable.EnableOptimizations = false;
#else
            BundleTable.EnableOptimizations = true;
#endif
        }
    }
}